<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GrPPI: grppi::parallel_execution_native Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GrPPI
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Generic and Reusable Parallel Pattern Interface</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacegrppi.html">grppi</a></li><li class="navelem"><a class="el" href="classgrppi_1_1parallel__execution__native.html">parallel_execution_native</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classgrppi_1_1parallel__execution__native-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">grppi::parallel_execution_native Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Native parallel execution policy. This policy uses ISO C++ threads as implementation building block allowing usage in any ISO C++ compliant platform.  
 <a href="classgrppi_1_1parallel__execution__native.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="parallel__execution__native_8h_source.html">parallel_execution_native.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ade8219a47138ed32dd2209097c6edb91"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#ade8219a47138ed32dd2209097c6edb91">parallel_execution_native</a> () noexcept</td></tr>
<tr class="memdesc:ade8219a47138ed32dd2209097c6edb91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default construct a native parallel execution policy.  <a href="classgrppi_1_1parallel__execution__native.html#ade8219a47138ed32dd2209097c6edb91">More...</a><br /></td></tr>
<tr class="separator:ade8219a47138ed32dd2209097c6edb91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b98f877a6e1273329b77e80f8c70d05"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a2b98f877a6e1273329b77e80f8c70d05">parallel_execution_native</a> (int <a class="el" href="classgrppi_1_1parallel__execution__native.html#aae3c5760c422c19a391ce1ddaa5e9f0b">concurrency_degree</a>, bool ordering=true) noexcept</td></tr>
<tr class="memdesc:a2b98f877a6e1273329b77e80f8c70d05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a native parallel execution policy.  <a href="classgrppi_1_1parallel__execution__native.html#a2b98f877a6e1273329b77e80f8c70d05">More...</a><br /></td></tr>
<tr class="separator:a2b98f877a6e1273329b77e80f8c70d05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4637a785a2061321e68345514c31ca1c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a4637a785a2061321e68345514c31ca1c">parallel_execution_native</a> (const <a class="el" href="classgrppi_1_1parallel__execution__native.html">parallel_execution_native</a> &amp;ex)</td></tr>
<tr class="separator:a4637a785a2061321e68345514c31ca1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19ab3a76eaf5ff20e005e4c231de5668"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a19ab3a76eaf5ff20e005e4c231de5668">set_concurrency_degree</a> (int degree) noexcept</td></tr>
<tr class="memdesc:a19ab3a76eaf5ff20e005e4c231de5668"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set number of grppi threads.  <a href="classgrppi_1_1parallel__execution__native.html#a19ab3a76eaf5ff20e005e4c231de5668">More...</a><br /></td></tr>
<tr class="separator:a19ab3a76eaf5ff20e005e4c231de5668"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae3c5760c422c19a391ce1ddaa5e9f0b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#aae3c5760c422c19a391ce1ddaa5e9f0b">concurrency_degree</a> () const noexcept</td></tr>
<tr class="memdesc:aae3c5760c422c19a391ce1ddaa5e9f0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get number of grppi threads.  <a href="classgrppi_1_1parallel__execution__native.html#aae3c5760c422c19a391ce1ddaa5e9f0b">More...</a><br /></td></tr>
<tr class="separator:aae3c5760c422c19a391ce1ddaa5e9f0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac71cfba0f7349d3ccfa4ffd0133a7298"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#ac71cfba0f7349d3ccfa4ffd0133a7298">enable_ordering</a> () noexcept</td></tr>
<tr class="memdesc:ac71cfba0f7349d3ccfa4ffd0133a7298"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable ordering.  <a href="classgrppi_1_1parallel__execution__native.html#ac71cfba0f7349d3ccfa4ffd0133a7298">More...</a><br /></td></tr>
<tr class="separator:ac71cfba0f7349d3ccfa4ffd0133a7298"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d64864ad9a1712b2528c0d424fd7ae4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a5d64864ad9a1712b2528c0d424fd7ae4">disable_ordering</a> () noexcept</td></tr>
<tr class="memdesc:a5d64864ad9a1712b2528c0d424fd7ae4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable ordering.  <a href="classgrppi_1_1parallel__execution__native.html#a5d64864ad9a1712b2528c0d424fd7ae4">More...</a><br /></td></tr>
<tr class="separator:a5d64864ad9a1712b2528c0d424fd7ae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a865f895d5f3e10b6f0cfa55f197c109b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a865f895d5f3e10b6f0cfa55f197c109b">is_ordered</a> () const noexcept</td></tr>
<tr class="memdesc:a865f895d5f3e10b6f0cfa55f197c109b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is execution ordered.  <a href="classgrppi_1_1parallel__execution__native.html#a865f895d5f3e10b6f0cfa55f197c109b">More...</a><br /></td></tr>
<tr class="separator:a865f895d5f3e10b6f0cfa55f197c109b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eebfa3f27e0ca33ab2d5dc6f993b336"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgrppi_1_1native__thread__manager.html">native_thread_manager</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a8eebfa3f27e0ca33ab2d5dc6f993b336">thread_manager</a> () const</td></tr>
<tr class="memdesc:a8eebfa3f27e0ca33ab2d5dc6f993b336"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a manager object for registration/deregistration in the thread index table for current thread.  <a href="classgrppi_1_1parallel__execution__native.html#a8eebfa3f27e0ca33ab2d5dc6f993b336">More...</a><br /></td></tr>
<tr class="separator:a8eebfa3f27e0ca33ab2d5dc6f993b336"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a969c78379311aa8678df7eaac0ae33b6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a969c78379311aa8678df7eaac0ae33b6">get_thread_id</a> () const noexcept</td></tr>
<tr class="memdesc:a969c78379311aa8678df7eaac0ae33b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get index of current thread in the thread table.  <a href="classgrppi_1_1parallel__execution__native.html#a969c78379311aa8678df7eaac0ae33b6">More...</a><br /></td></tr>
<tr class="separator:a969c78379311aa8678df7eaac0ae33b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d8ff67ca30e0fa19ad0c9365a59ff02"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a2d8ff67ca30e0fa19ad0c9365a59ff02">set_queue_attributes</a> (int size, <a class="el" href="namespacegrppi.html#aa0514650a765d4853343655e7588662b">queue_mode</a> mode) noexcept</td></tr>
<tr class="memdesc:a2d8ff67ca30e0fa19ad0c9365a59ff02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the attributes for the queues built through <a class="el" href="classgrppi_1_1parallel__execution__native.html#a10880dd9d49d864e7f444c86ac4a46cf" title="Makes a communication queue for elements of type T. Constructs a queue using the attributes that can ...">make_queue&lt;T&gt;()</a>  <a href="classgrppi_1_1parallel__execution__native.html#a2d8ff67ca30e0fa19ad0c9365a59ff02">More...</a><br /></td></tr>
<tr class="separator:a2d8ff67ca30e0fa19ad0c9365a59ff02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10880dd9d49d864e7f444c86ac4a46cf"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a10880dd9d49d864e7f444c86ac4a46cf"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a10880dd9d49d864e7f444c86ac4a46cf">make_queue</a> () const</td></tr>
<tr class="memdesc:a10880dd9d49d864e7f444c86ac4a46cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes a communication queue for elements of type T. Constructs a queue using the attributes that can be set via <a class="el" href="classgrppi_1_1parallel__execution__native.html#a2d8ff67ca30e0fa19ad0c9365a59ff02" title="Sets the attributes for the queues built through make_queue&lt;T&gt;()">set_queue_attributes()</a>. The value is returned via move semantics.  <a href="classgrppi_1_1parallel__execution__native.html#a10880dd9d49d864e7f444c86ac4a46cf">More...</a><br /></td></tr>
<tr class="separator:a10880dd9d49d864e7f444c86ac4a46cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaf82b9455e95c36eec1b267e02f5720"><td class="memTemplParams" colspan="2">template&lt;typename T , typename ... Transformers&gt; </td></tr>
<tr class="memitem:afaf82b9455e95c36eec1b267e02f5720"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#afaf82b9455e95c36eec1b267e02f5720">get_output_queue</a> (<a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt; &amp;queue, Transformers &amp;&amp;...) const</td></tr>
<tr class="memdesc:afaf82b9455e95c36eec1b267e02f5720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the reference of a communication queue for elements of type T if the queue has been created in an outer pattern. Returns the reference of the queue received as argument.  <a href="classgrppi_1_1parallel__execution__native.html#afaf82b9455e95c36eec1b267e02f5720">More...</a><br /></td></tr>
<tr class="separator:afaf82b9455e95c36eec1b267e02f5720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96fc47e584768cbbb68ce937b8bbc149"><td class="memTemplParams" colspan="2">template&lt;typename T , typename ... Transformers&gt; </td></tr>
<tr class="memitem:a96fc47e584768cbbb68ce937b8bbc149"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a96fc47e584768cbbb68ce937b8bbc149">get_output_queue</a> (Transformers &amp;&amp;...) const</td></tr>
<tr class="memdesc:a96fc47e584768cbbb68ce937b8bbc149"><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes a communication queue for elements of type T if the queue has not been created in an outer pattern. Call to the make_queue function and the value is returned via move semantics.  <a href="classgrppi_1_1parallel__execution__native.html#a96fc47e584768cbbb68ce937b8bbc149">More...</a><br /></td></tr>
<tr class="separator:a96fc47e584768cbbb68ce937b8bbc149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8db778ce00ec067865a95be462f3243b"><td class="memTemplParams" colspan="2">template&lt;typename ... InputIterators, typename OutputIterator , typename Transformer &gt; </td></tr>
<tr class="memitem:a8db778ce00ec067865a95be462f3243b"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a8db778ce00ec067865a95be462f3243b">map</a> (std::tuple&lt; InputIterators... &gt; firsts, OutputIterator first_out, std::size_t sequence_size, Transformer transform_op) const</td></tr>
<tr class="memdesc:a8db778ce00ec067865a95be462f3243b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Applies a transformation to multiple sequences leaving the result in another sequence by chunks according to concurrency degree.  <a href="classgrppi_1_1parallel__execution__native.html#a8db778ce00ec067865a95be462f3243b">More...</a><br /></td></tr>
<tr class="separator:a8db778ce00ec067865a95be462f3243b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3a2ba53ec25de0e0df32c5ae2bda381"><td class="memTemplParams" colspan="2">template&lt;typename InputIterator , typename Identity , typename Combiner &gt; </td></tr>
<tr class="memitem:ac3a2ba53ec25de0e0df32c5ae2bda381"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#ac3a2ba53ec25de0e0df32c5ae2bda381">reduce</a> (InputIterator first, std::size_t sequence_size, Identity &amp;&amp;identity, Combiner &amp;&amp;combine_op) const</td></tr>
<tr class="memdesc:ac3a2ba53ec25de0e0df32c5ae2bda381"><td class="mdescLeft">&#160;</td><td class="mdescRight">Applies a reduction to a sequence of data items.  <a href="classgrppi_1_1parallel__execution__native.html#ac3a2ba53ec25de0e0df32c5ae2bda381">More...</a><br /></td></tr>
<tr class="separator:ac3a2ba53ec25de0e0df32c5ae2bda381"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2176d672f3a4ccc084733bfd07e8b871"><td class="memTemplParams" colspan="2">template&lt;typename ... InputIterators, typename Identity , typename Transformer , typename Combiner &gt; </td></tr>
<tr class="memitem:a2176d672f3a4ccc084733bfd07e8b871"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a2176d672f3a4ccc084733bfd07e8b871">map_reduce</a> (std::tuple&lt; InputIterators... &gt; firsts, std::size_t sequence_size, Identity &amp;&amp;identity, Transformer &amp;&amp;transform_op, Combiner &amp;&amp;combine_op) const</td></tr>
<tr class="memdesc:a2176d672f3a4ccc084733bfd07e8b871"><td class="mdescLeft">&#160;</td><td class="mdescRight">Applies a map/reduce operation to a sequence of data items.  <a href="classgrppi_1_1parallel__execution__native.html#a2176d672f3a4ccc084733bfd07e8b871">More...</a><br /></td></tr>
<tr class="separator:a2176d672f3a4ccc084733bfd07e8b871"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2664e02c85c147716a0028db3617ce7"><td class="memTemplParams" colspan="2">template&lt;typename ... InputIterators, typename OutputIterator , typename StencilTransformer , typename Neighbourhood &gt; </td></tr>
<tr class="memitem:ad2664e02c85c147716a0028db3617ce7"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#ad2664e02c85c147716a0028db3617ce7">stencil</a> (std::tuple&lt; InputIterators... &gt; firsts, OutputIterator first_out, std::size_t sequence_size, StencilTransformer &amp;&amp;transform_op, Neighbourhood &amp;&amp;neighbour_op) const</td></tr>
<tr class="memdesc:ad2664e02c85c147716a0028db3617ce7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Applies a stencil to multiple sequences leaving the result in another sequence.  <a href="classgrppi_1_1parallel__execution__native.html#ad2664e02c85c147716a0028db3617ce7">More...</a><br /></td></tr>
<tr class="separator:ad2664e02c85c147716a0028db3617ce7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c85c1297cd4864c1eee227786219ec4"><td class="memTemplParams" colspan="2">template&lt;typename Input , typename Divider , typename Solver , typename Combiner &gt; </td></tr>
<tr class="memitem:a7c85c1297cd4864c1eee227786219ec4"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a7c85c1297cd4864c1eee227786219ec4">divide_conquer</a> (Input &amp;&amp;input, Divider &amp;&amp;divide_op, Solver &amp;&amp;solve_op, Combiner &amp;&amp;combine_op) const</td></tr>
<tr class="memdesc:a7c85c1297cd4864c1eee227786219ec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke md_divide-conquer.  <a href="classgrppi_1_1parallel__execution__native.html#a7c85c1297cd4864c1eee227786219ec4">More...</a><br /></td></tr>
<tr class="separator:a7c85c1297cd4864c1eee227786219ec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d51fc1bf6be19cddf798dedf9db8c94"><td class="memTemplParams" colspan="2">template&lt;typename Input , typename Divider , typename Predicate , typename Solver , typename Combiner &gt; </td></tr>
<tr class="memitem:a7d51fc1bf6be19cddf798dedf9db8c94"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a7d51fc1bf6be19cddf798dedf9db8c94">divide_conquer</a> (Input &amp;&amp;input, Divider &amp;&amp;divide_op, Predicate &amp;&amp;predicate_op, Solver &amp;&amp;solve_op, Combiner &amp;&amp;combine_op) const</td></tr>
<tr class="memdesc:a7d51fc1bf6be19cddf798dedf9db8c94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke md_divide-conquer.  <a href="classgrppi_1_1parallel__execution__native.html#a7d51fc1bf6be19cddf798dedf9db8c94">More...</a><br /></td></tr>
<tr class="separator:a7d51fc1bf6be19cddf798dedf9db8c94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01b4129dc5ffbabfcd568cd3908cd198"><td class="memTemplParams" colspan="2">template&lt;typename Generator , typename ... Transformers&gt; </td></tr>
<tr class="memitem:a01b4129dc5ffbabfcd568cd3908cd198"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a01b4129dc5ffbabfcd568cd3908cd198">pipeline</a> (Generator &amp;&amp;generate_op, Transformers &amp;&amp;... transform_ops) const</td></tr>
<tr class="memdesc:a01b4129dc5ffbabfcd568cd3908cd198"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke <a class="el" href="md_pipeline.html">Pipeline pattern</a>.  <a href="classgrppi_1_1parallel__execution__native.html#a01b4129dc5ffbabfcd568cd3908cd198">More...</a><br /></td></tr>
<tr class="separator:a01b4129dc5ffbabfcd568cd3908cd198"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf99699aa7bbcddca2b1b7176e641da6"><td class="memTemplParams" colspan="2">template&lt;typename InputType , typename Transformer , typename OutputType &gt; </td></tr>
<tr class="memitem:aaf99699aa7bbcddca2b1b7176e641da6"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#aaf99699aa7bbcddca2b1b7176e641da6">pipeline</a> (<a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; InputType &gt; &amp;input_queue, Transformer &amp;&amp;transform_op, <a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; OutputType &gt; &amp;output_queue) const</td></tr>
<tr class="memdesc:aaf99699aa7bbcddca2b1b7176e641da6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invoke <a class="el" href="md_pipeline.html">Pipeline pattern</a> coming from another context that uses mpmc_queues as communication channels.  <a href="classgrppi_1_1parallel__execution__native.html#aaf99699aa7bbcddca2b1b7176e641da6">More...</a><br /></td></tr>
<tr class="separator:aaf99699aa7bbcddca2b1b7176e641da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1083f0d731ce4eb7d279beb00ff9cbc"><td class="memTemplParams" colspan="2">template&lt;typename Queue , typename Transformer , typename Predicate , template&lt; typename T, typename P &gt; class Iteration, typename ... OtherTransformers, requires_iteration&lt; Iteration&lt; Transformer, Predicate &gt;&gt; , requires_pipeline&lt; Transformer &gt; &gt; </td></tr>
<tr class="memitem:ab1083f0d731ce4eb7d279beb00ff9cbc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#ab1083f0d731ce4eb7d279beb00ff9cbc">do_pipeline</a> (Queue &amp;, Iteration&lt; Transformer, Predicate &gt; &amp;&amp;, OtherTransformers &amp;&amp;...) const</td></tr>
<tr class="separator:ab1083f0d731ce4eb7d279beb00ff9cbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e1dfd86224c1504004fa6b81adeb341"><td class="memTemplParams" colspan="2">template&lt;typename T , typename... Others&gt; </td></tr>
<tr class="memitem:a1e1dfd86224c1504004fa6b81adeb341"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrppi_1_1parallel__execution__native.html#a1e1dfd86224c1504004fa6b81adeb341">do_pipeline</a> (<a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt; &amp;, <a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt; &amp;, Others &amp;&amp;...) const</td></tr>
<tr class="separator:a1e1dfd86224c1504004fa6b81adeb341"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Native parallel execution policy. This policy uses ISO C++ threads as implementation building block allowing usage in any ISO C++ compliant platform. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ade8219a47138ed32dd2209097c6edb91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade8219a47138ed32dd2209097c6edb91">&#9670;&nbsp;</a></span>parallel_execution_native() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">grppi::parallel_execution_native::parallel_execution_native </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default construct a native parallel execution policy. </p>
<p>Creates a parallel execution native object.</p>
<p>The concurrency degree is determined by the platform.</p>
<dl class="section note"><dt>Note</dt><dd>The concurrency degree is fixed to 2 times the hardware concurrency degree. </dd></dl>

</div>
</div>
<a id="a2b98f877a6e1273329b77e80f8c70d05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b98f877a6e1273329b77e80f8c70d05">&#9670;&nbsp;</a></span>parallel_execution_native() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">grppi::parallel_execution_native::parallel_execution_native </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>concurrency_degree</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>ordering</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs a native parallel execution policy. </p>
<p>Creates a parallel execution native object selecting the concurrency degree and ordering mode. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">concurrency_degree</td><td>Number of threads used for parallel algorithms. </td></tr>
    <tr><td class="paramname">order</td><td>Whether ordered executions is enabled or disabled. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4637a785a2061321e68345514c31ca1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4637a785a2061321e68345514c31ca1c">&#9670;&nbsp;</a></span>parallel_execution_native() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">grppi::parallel_execution_native::parallel_execution_native </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgrppi_1_1parallel__execution__native.html">parallel_execution_native</a> &amp;&#160;</td>
          <td class="paramname"><em>ex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aae3c5760c422c19a391ce1ddaa5e9f0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae3c5760c422c19a391ce1ddaa5e9f0b">&#9670;&nbsp;</a></span>concurrency_degree()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int grppi::parallel_execution_native::concurrency_degree </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get number of grppi threads. </p>

</div>
</div>
<a id="a5d64864ad9a1712b2528c0d424fd7ae4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d64864ad9a1712b2528c0d424fd7ae4">&#9670;&nbsp;</a></span>disable_ordering()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::disable_ordering </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Disable ordering. </p>

</div>
</div>
<a id="a7d51fc1bf6be19cddf798dedf9db8c94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d51fc1bf6be19cddf798dedf9db8c94">&#9670;&nbsp;</a></span>divide_conquer() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Input , typename Divider , typename Predicate , typename Solver , typename Combiner &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::parallel_execution_native::divide_conquer </td>
          <td>(</td>
          <td class="paramtype">Input &amp;&amp;&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Divider &amp;&amp;&#160;</td>
          <td class="paramname"><em>divide_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Predicate &amp;&amp;&#160;</td>
          <td class="paramname"><em>predicate_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Solver &amp;&amp;&#160;</td>
          <td class="paramname"><em>solve_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invoke md_divide-conquer. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Input</td><td>Type used for the input problem. </td></tr>
    <tr><td class="paramname">Divider</td><td>Callable type for the divider operation. </td></tr>
    <tr><td class="paramname">Predicate</td><td>Callable type for the stop condition predicate. </td></tr>
    <tr><td class="paramname">Solver</td><td>Callable type for the solver operation. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable type for the combiner operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ex</td><td>Sequential execution policy object. </td></tr>
    <tr><td class="paramname">input</td><td>Input problem to be solved. </td></tr>
    <tr><td class="paramname">divider_op</td><td>Divider operation. </td></tr>
    <tr><td class="paramname">predicate_op</td><td>Predicate operation. </td></tr>
    <tr><td class="paramname">solver_op</td><td>Solver operation. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combiner operation. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7c85c1297cd4864c1eee227786219ec4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c85c1297cd4864c1eee227786219ec4">&#9670;&nbsp;</a></span>divide_conquer() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Input , typename Divider , typename Solver , typename Combiner &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::parallel_execution_native::divide_conquer </td>
          <td>(</td>
          <td class="paramtype">Input &amp;&amp;&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Divider &amp;&amp;&#160;</td>
          <td class="paramname"><em>divide_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Solver &amp;&amp;&#160;</td>
          <td class="paramname"><em>solve_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invoke md_divide-conquer. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Input</td><td>Type used for the input problem. </td></tr>
    <tr><td class="paramname">Divider</td><td>Callable type for the divider operation. </td></tr>
    <tr><td class="paramname">Solver</td><td>Callable type for the solver operation. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable type for the combiner operation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ex</td><td>Sequential execution policy object. </td></tr>
    <tr><td class="paramname">input</td><td>Input problem to be solved. </td></tr>
    <tr><td class="paramname">divider_op</td><td>Divider operation. </td></tr>
    <tr><td class="paramname">solver_op</td><td>Solver operation. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combiner operation. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1e1dfd86224c1504004fa6b81adeb341"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e1dfd86224c1504004fa6b81adeb341">&#9670;&nbsp;</a></span>do_pipeline() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename... Others&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::do_pipeline </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Others &amp;&amp;&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab1083f0d731ce4eb7d279beb00ff9cbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1083f0d731ce4eb7d279beb00ff9cbc">&#9670;&nbsp;</a></span>do_pipeline() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Queue , typename Transformer , typename Predicate , template&lt; typename T, typename P &gt; class Iteration, typename ... OtherTransformers, requires_iteration&lt; Iteration&lt; Transformer, Predicate &gt;&gt; , requires_pipeline&lt; Transformer &gt; &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::do_pipeline </td>
          <td>(</td>
          <td class="paramtype">Queue &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Iteration&lt; Transformer, Predicate &gt; &amp;&amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">OtherTransformers &amp;&amp;&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac71cfba0f7349d3ccfa4ffd0133a7298"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac71cfba0f7349d3ccfa4ffd0133a7298">&#9670;&nbsp;</a></span>enable_ordering()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::enable_ordering </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enable ordering. </p>

</div>
</div>
<a id="afaf82b9455e95c36eec1b267e02f5720"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaf82b9455e95c36eec1b267e02f5720">&#9670;&nbsp;</a></span>get_output_queue() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename ... Transformers&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt;T&gt;&amp; grppi::parallel_execution_native::get_output_queue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>queue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformers &amp;&amp;&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the reference of a communication queue for elements of type T if the queue has been created in an outer pattern. Returns the reference of the queue received as argument. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Element type for the queue. </td></tr>
    <tr><td class="paramname">Transformers</td><td>List of the next transformers. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queue</td><td>Reference of a queue of type T </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a96fc47e584768cbbb68ce937b8bbc149"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96fc47e584768cbbb68ce937b8bbc149">&#9670;&nbsp;</a></span>get_output_queue() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , typename ... Transformers&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt;T&gt; grppi::parallel_execution_native::get_output_queue </td>
          <td>(</td>
          <td class="paramtype">Transformers &amp;&amp;&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Makes a communication queue for elements of type T if the queue has not been created in an outer pattern. Call to the make_queue function and the value is returned via move semantics. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Element type for the queue. </td></tr>
    <tr><td class="paramname">Transformers</td><td>List of the next transformers. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a969c78379311aa8678df7eaac0ae33b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a969c78379311aa8678df7eaac0ae33b6">&#9670;&nbsp;</a></span>get_thread_id()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int grppi::parallel_execution_native::get_thread_id </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get index of current thread in the thread table. </p>
<dl class="section pre"><dt>Precondition</dt><dd>The current thread is currently registered. </dd></dl>

</div>
</div>
<a id="a865f895d5f3e10b6f0cfa55f197c109b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a865f895d5f3e10b6f0cfa55f197c109b">&#9670;&nbsp;</a></span>is_ordered()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool grppi::parallel_execution_native::is_ordered </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Is execution ordered. </p>

</div>
</div>
<a id="a10880dd9d49d864e7f444c86ac4a46cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10880dd9d49d864e7f444c86ac4a46cf">&#9670;&nbsp;</a></span>make_queue()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt;T&gt; grppi::parallel_execution_native::make_queue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Makes a communication queue for elements of type T. Constructs a queue using the attributes that can be set via <a class="el" href="classgrppi_1_1parallel__execution__native.html#a2d8ff67ca30e0fa19ad0c9365a59ff02" title="Sets the attributes for the queues built through make_queue&lt;T&gt;()">set_queue_attributes()</a>. The value is returned via move semantics. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Element type for the queue. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8db778ce00ec067865a95be462f3243b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8db778ce00ec067865a95be462f3243b">&#9670;&nbsp;</a></span>map()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... InputIterators, typename OutputIterator , typename Transformer &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::map </td>
          <td>(</td>
          <td class="paramtype">std::tuple&lt; InputIterators... &gt;&#160;</td>
          <td class="paramname"><em>firsts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">OutputIterator&#160;</td>
          <td class="paramname"><em>first_out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>sequence_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformer&#160;</td>
          <td class="paramname"><em>transform_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Applies a transformation to multiple sequences leaving the result in another sequence by chunks according to concurrency degree. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">InputIterators</td><td>Iterator types for input sequences. </td></tr>
    <tr><td class="paramname">OutputIterator</td><td>Iterator type for the output sequence. </td></tr>
    <tr><td class="paramname">Transformer</td><td>Callable object type for the transformation. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">firsts</td><td>Tuple of iterators to input sequences. </td></tr>
    <tr><td class="paramname">first_out</td><td>Iterator to the output sequence. </td></tr>
    <tr><td class="paramname">sequence_size</td><td>Size of the input sequences. </td></tr>
    <tr><td class="paramname">transform_op</td><td>Transformation callable object. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd>For every I iterators in the range <code>[get&lt;I&gt;(firsts), next(get&lt;I&gt;(firsts),sequence_size))</code> are valid. </dd>
<dd>
Iterators in the range <code>[first_out, next(first_out,sequence_size)]</code> are valid. </dd></dl>

</div>
</div>
<a id="a2176d672f3a4ccc084733bfd07e8b871"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2176d672f3a4ccc084733bfd07e8b871">&#9670;&nbsp;</a></span>map_reduce()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... InputIterators, typename Identity , typename Transformer , typename Combiner &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::parallel_execution_native::map_reduce </td>
          <td>(</td>
          <td class="paramtype">std::tuple&lt; InputIterators... &gt;&#160;</td>
          <td class="paramname"><em>firsts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>sequence_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Identity &amp;&amp;&#160;</td>
          <td class="paramname"><em>identity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformer &amp;&amp;&#160;</td>
          <td class="paramname"><em>transform_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Applies a map/reduce operation to a sequence of data items. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">InputIterator</td><td>Iterator type for the input sequence. </td></tr>
    <tr><td class="paramname">Identity</td><td>Type for the identity value. </td></tr>
    <tr><td class="paramname">Transformer</td><td>Callable object type for the transformation. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable object type for the combination. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">first</td><td>Iterator to the first element of the sequence. </td></tr>
    <tr><td class="paramname">sequence_size</td><td>Size of the input sequence. </td></tr>
    <tr><td class="paramname">identity</td><td>Identity value for the reduction. </td></tr>
    <tr><td class="paramname">transform_op</td><td>Transformation callable object. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combination callable object. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd>Iterators in the range <code>[first,last)</code> are valid. </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The map/reduce result. </dd></dl>

</div>
</div>
<a id="a01b4129dc5ffbabfcd568cd3908cd198"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01b4129dc5ffbabfcd568cd3908cd198">&#9670;&nbsp;</a></span>pipeline() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Generator , typename ... Transformers&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::pipeline </td>
          <td>(</td>
          <td class="paramtype">Generator &amp;&amp;&#160;</td>
          <td class="paramname"><em>generate_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformers &amp;&amp;...&#160;</td>
          <td class="paramname"><em>transform_ops</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invoke <a class="el" href="md_pipeline.html">Pipeline pattern</a>. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Generator</td><td>Callable type for the generator operation. </td></tr>
    <tr><td class="paramname">Transformers</td><td>Callable types for the transformers in the pipeline. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">generate_op</td><td>Generator operation. </td></tr>
    <tr><td class="paramname">transform_ops</td><td>Transformer operations. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aaf99699aa7bbcddca2b1b7176e641da6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf99699aa7bbcddca2b1b7176e641da6">&#9670;&nbsp;</a></span>pipeline() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename InputType , typename Transformer , typename OutputType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::pipeline </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; InputType &gt; &amp;&#160;</td>
          <td class="paramname"><em>input_queue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transformer &amp;&amp;&#160;</td>
          <td class="paramname"><em>transform_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classgrppi_1_1mpmc__queue.html">mpmc_queue</a>&lt; OutputType &gt; &amp;&#160;</td>
          <td class="paramname"><em>output_queue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Invoke <a class="el" href="md_pipeline.html">Pipeline pattern</a> coming from another context that uses mpmc_queues as communication channels. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">InputType</td><td>Type of the input stream. </td></tr>
    <tr><td class="paramname">Transformers</td><td>Callable types for the transformers in the pipeline. </td></tr>
    <tr><td class="paramname">InputType</td><td>Type of the output stream. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_queue</td><td>Input stream communicator. </td></tr>
    <tr><td class="paramname">transform_ops</td><td>Transformer operations. </td></tr>
    <tr><td class="paramname">output_queue</td><td>Input stream communicator. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac3a2ba53ec25de0e0df32c5ae2bda381"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3a2ba53ec25de0e0df32c5ae2bda381">&#9670;&nbsp;</a></span>reduce()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename InputIterator , typename Identity , typename Combiner &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">auto grppi::parallel_execution_native::reduce </td>
          <td>(</td>
          <td class="paramtype">InputIterator&#160;</td>
          <td class="paramname"><em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>sequence_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Identity &amp;&amp;&#160;</td>
          <td class="paramname"><em>identity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Combiner &amp;&amp;&#160;</td>
          <td class="paramname"><em>combine_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Applies a reduction to a sequence of data items. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">InputIterator</td><td>Iterator type for the input sequence. </td></tr>
    <tr><td class="paramname">Identity</td><td>Type for the identity value. </td></tr>
    <tr><td class="paramname">Combiner</td><td>Callable object type for the combination. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">first</td><td>Iterator to the first element of the sequence. </td></tr>
    <tr><td class="paramname">sequence_size</td><td>Size of the input sequence. </td></tr>
    <tr><td class="paramname">identity</td><td>Identity value for the reduction. </td></tr>
    <tr><td class="paramname">combine_op</td><td>Combination callable object. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd>Iterators in the range <code>[first,last)</code> are valid. </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The reduction result </dd></dl>

</div>
</div>
<a id="a19ab3a76eaf5ff20e005e4c231de5668"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19ab3a76eaf5ff20e005e4c231de5668">&#9670;&nbsp;</a></span>set_concurrency_degree()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::set_concurrency_degree </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>degree</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set number of grppi threads. </p>

</div>
</div>
<a id="a2d8ff67ca30e0fa19ad0c9365a59ff02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d8ff67ca30e0fa19ad0c9365a59ff02">&#9670;&nbsp;</a></span>set_queue_attributes()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::set_queue_attributes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacegrppi.html#aa0514650a765d4853343655e7588662b">queue_mode</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the attributes for the queues built through <a class="el" href="classgrppi_1_1parallel__execution__native.html#a10880dd9d49d864e7f444c86ac4a46cf" title="Makes a communication queue for elements of type T. Constructs a queue using the attributes that can ...">make_queue&lt;T&gt;()</a> </p>

</div>
</div>
<a id="ad2664e02c85c147716a0028db3617ce7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2664e02c85c147716a0028db3617ce7">&#9670;&nbsp;</a></span>stencil()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ... InputIterators, typename OutputIterator , typename StencilTransformer , typename Neighbourhood &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void grppi::parallel_execution_native::stencil </td>
          <td>(</td>
          <td class="paramtype">std::tuple&lt; InputIterators... &gt;&#160;</td>
          <td class="paramname"><em>firsts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">OutputIterator&#160;</td>
          <td class="paramname"><em>first_out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>sequence_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">StencilTransformer &amp;&amp;&#160;</td>
          <td class="paramname"><em>transform_op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Neighbourhood &amp;&amp;&#160;</td>
          <td class="paramname"><em>neighbour_op</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Applies a stencil to multiple sequences leaving the result in another sequence. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">InputIterators</td><td>Iterator types for input sequences. </td></tr>
    <tr><td class="paramname">OutputIterator</td><td>Iterator type for the output sequence. </td></tr>
    <tr><td class="paramname">StencilTransformer</td><td>Callable object type for the stencil transformation. </td></tr>
    <tr><td class="paramname">Neighbourhood</td><td>Callable object for generating neighbourhoods. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">firsts</td><td>Tuple of iterators to input sequences. </td></tr>
    <tr><td class="paramname">first_out</td><td>Iterator to the output sequence. </td></tr>
    <tr><td class="paramname">sequence_size</td><td>Size of the input sequences. </td></tr>
    <tr><td class="paramname">transform_op</td><td>Stencil transformation callable object. </td></tr>
    <tr><td class="paramname">neighbour_op</td><td>Neighbourhood callable object. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd>For every I iterators in the range <code>[get&lt;I&gt;(firsts), next(get&lt;I&gt;(firsts),sequence_size))</code> are valid. </dd>
<dd>
Iterators in the range <code>[first_out, next(first_out,sequence_size)]</code> are valid. </dd></dl>

</div>
</div>
<a id="a8eebfa3f27e0ca33ab2d5dc6f993b336"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8eebfa3f27e0ca33ab2d5dc6f993b336">&#9670;&nbsp;</a></span>thread_manager()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgrppi_1_1native__thread__manager.html">native_thread_manager</a> grppi::parallel_execution_native::thread_manager </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get a manager object for registration/deregistration in the thread index table for current thread. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="parallel__execution__native_8h_source.html">parallel_execution_native.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
